function checkLogin(){
    const login = sessionStorage.getItem("login")
    // console.log(login);
    if(login!='1'){
        alert("请先登录！")
        location.href="../html/login.html"
    }
}
checkLogin()